package cn.zhouchao.org.service;

import cn.zhouchao.basic.service.IBaseService;
import cn.zhouchao.org.domain.Department;
import cn.zhouchao.org.domain.Employee;

import java.util.List;

public interface IDepartmentService extends IBaseService<Department> {
//    //查询所有
//    List<Department> findAll();
//    //查询单个
//    Department findById(Long id);
//    //添加方法
//    void add(Department department);
//    //修改方法
//    void update(Department department);
//    //删除方法
//    void delete(Long id);
//    //分页查询
//    PageList<Department> queryByPage(DepartmentQuery departmentQuery);
//    //批量删除
//    void batchDelete(List<Long> ids);

    //查询父级部门
    List<Department> deptTree();

    List<Employee> findEmpByDeptId(Long id);
}
